local ClientOHOH = _G.ClientOHOH;
local M = ClientOHOH.class.new(script, ClientOHOH.files.Client_PlayerComponent(),script.Parent.Name);
local CallBackManager = ClientOHOH.load.CallBackManager();
local UIManager = ClientOHOH.load.UIManager();
local HomeGui=UIManager.ui_list.HomeGui
local GlobalTipGui=UIManager.ui_list.GlobalTipGui
local LanguageHelper=_G.LanguageHelper 


function M.new(self,...)
	return M(self,...);
end;


function M.ctor(self, parent)
	M.super.ctor(self, parent);	
    

    self.boost=ClientOHOH:GetPath_Loop("FriendBoost",self.parent.main_inst)

    self.HomeCtrl=self.parent:GetComponent(ClientOHOH.load.Client_HomeCtrl());

    self.HomeCtrl:AddFriendBoost(self.boost.Value)
    self.boost.Changed:Connect(function(Value)

        
        self.HomeCtrl:AddFriendBoost(self.boost.Value)
    end)



    self.parent.AttackValueMulEvent:Connect(function()
         return 1+self.boost.Value
    end)

end;


function M.dtor(self)
	M.super.dtor(self);
end;

return M